package com.springboot.ww.platform.pd.ctms.demo;

import cn.hutool.core.net.DefaultTrustManager;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.ssl.SSLSocketFactoryBuilder;
import cn.hutool.http.ssl.TrustAnyHostnameVerifier;

import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2025-06-24 17:31
 */
public class PdddTest2 {

    public static void main(String[] args) throws NoSuchAlgorithmException, KeyManagementException {
        String s = "{\"access_token\":\"hs4blss3yc6akvrmsmbyoliwiqj3bkj7okchpzdgocl1nyblfq09ymrm\",\"app_key\":\"8237c1d50eea6196162e991648f7e469\",\"data_type\":\"JSON\",\"productSkcId\":\"26679243244\",\"sign\":\"7CAD1F742EC0BE3DB2638245B1EE8AFB\",\"timestamp\":1750754653,\"type\":\"bg.btg.goods.stock.quantity.get\"}";
        String body = HttpRequest
                .post("https://openapi-b-partner.temu.com/openapi/router")
                .body(s).execute().body();
        System.out.println(body);
    }
}
